import request from './index'

function getWebSocketKey() {
    const result = request({
        url: '/webSocket/getWebSocketKey',
        method: 'post'
    })
    return result
}

function sedDataToWebSocket(data) {
    const result = request({
        url: '/webSocket/sedDataToWebSocket',
        method: 'post',
        data
    })
    return result
}

export default {
    getWebSocketKey,
    sedDataToWebSocket
}